import request from '@/utils/request'

// 查询重大演习演练列表
export function listDrill(query) {
  return request({
    url: '/drill/drill/list',
    method: 'get',
    params: query
  })
}

// 查询重大演习演练详细
export function getDrill(id) {
  return request({
    url: '/drill/drill/' + id,
    method: 'get'
  })
}

// 新增重大演习演练
export function addDrill(data) {
  return request({
    url: '/drill/drill',
    method: 'post',
    data: data
  })
}

// 修改重大演习演练
export function updateDrill(data) {
  return request({
    url: '/add/add/update2',
    method: 'put',
    data: data
  })
}

// 删除重大演习演练
export function delDrill(id) {
  return request({
    url: '/drill/drill/' + id,
    method: 'delete'
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}
// 批量添加
export function addDrillList(data) {
  return request({
    url: '/add/add/drill',
    method: 'post',
    data: data
  })
}